--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[

    天赋树控制组件。

    每次突破后，天赋点+1


    多多益善: the_more_the_better
    【完成】神游界外: beyond_the_world
    蝶隐之时: time_of_butterfly_concealment
    【完成】高等元素论: advanced_element_theory
            【取消】阴阳交赞: yin_yang_harmony
    血之灶火: blood_hearth_fire

]]--
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

return function(inst)
    if not TheWorld.ismastersim then
        return
    end

    inst:AddComponent("hutao_com_talent_tree")
    --- 每次突破后，天赋点+1
    inst:ListenForEvent("hutao_com_level_sys.level_up_break",function()
        -- inst.components.hutao_com_talent_tree:AddPoint(1)
        inst.components.hutao_com_talent_tree:AddPointsByMaxCheck(1)
    end)

end